Repository navigation
fix(web): keep Windows thread notifications clickable until handled - #22520
Merged
Yash-Singh1 merged 3 commits intoOct 26, 2026
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On Windows, clicking a "Thread completed" notification often does nothing: T3 Code doesn't come forward and the thread doesn't open.
This happens when the click lands on an entry in Notification Center rather than on the live banner. Windows moves a toast there after about 7 seconds. At that point Electron fires the web
closeevent and drops its notification object. A later click on the Notification Center entry reaches Electron's toast activator with empty arguments and no live object to dispatch to, so it is discarded and the renderer never getsclick. Every alert you weren't watching when it popped up is a dead entry, and I had around 20 of them stacked under T3 Code (Nightly).Repro (Windows 11, Electron 44.4.5, a minimal app with the same notification options and click handler as
ThreadNotificationCoordinator):Clicking the banner while it is still on screen works.
Illustration (mockup, made-up thread names): the timed-out entry before, and the toast that stays up after.
Change
On Windows, "Thread completed" notifications are now created with
requireInteraction, reusing the existingisWindowsPlatformhelper. Electron then shows the toast as a reminder that stays on screen with a Dismiss button until it is clicked or dismissed, so the click still goes to the live notification and the existing handler opens the thread.Alerts won't pile up while you're in the app: the coordinator already closes pending notifications when the window regains focus, and a newer alert for the same thread replaces the old one by tag. Attention alerts (input, approval, failed, usage limit) keep the normal timeout, because another client can resolve them while this window stays unfocused, and a sticky banner would then advertise an action that no longer exists. Other platforms are unchanged.
Scope and approval
This is a small, focused fix for an obvious bug, so there's no prior issue. It finishes the click-to-open behaviour from #12567, which raised the window on click for #12500 (Linux), for the case where the Windows click never reaches that handler.
The trade-off is that Windows completion alerts now stay on screen until handled instead of timing out. Attention alerts can still lose their click after timing out, since closing them when they're resolved elsewhere needs extra plumbing that would also change the badge count. Fixing clicks on timed-out entries would need Electron-side changes, because the activation carries no data that identifies the thread. Entries that already landed in Notification Center before this change are unaffected.
Verification
vp test run src/components/ThreadNotificationCoordinator.browser.test.tsx src/components/ThreadNotificationCoordinator.badge.browser.test.tsx: 37/37 pass.requireInteraction: true, and a Windows "Input needed" alert getsfalse. Each fails when the matching half of the condition is removed.false.setup()now pinsnavigator.platformso the suite doesn't depend on the host OS.vp lint,vp fmt --checkandtsc --noEmitare clean forapps/web.closefired at about 7s, the banner left the screen, and clicking the Notification Center entry produced noclick.click, which revealed and focused the window.Not checked: a full T3 Code desktop build on Windows. The image above is a mockup rather than a screenshot, because my Notification Center showed unrelated private notifications.
Written by Claude Opus 5.5 (
claude-opus-5-5) in Claude Code, running inside T3 Code. Independently reviewed before filing by GPT-6.1-Sol (gpt-6.1-sol, reasoning effort medium, fast service tier) via a T3 Code delegated task. Verdict: approve after three rounds. Round one flagged that the exact-option tests depended on the host OS. Round three covered the follow-up that keeps attention alerts on the normal timeout. Both are fixed.